package com.web.portal.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

/**
 * 分类
 */
@Data
@ApiModel(description = "Categories")
@TableName("tb_categories")
public class Category {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    @TableField("name")
    private String name;
    @TableField("pinyin")
    private String pinyin;
    @TableField("description")
    private String description;
    @TableField("sort")
    private Integer sort;
    @TableField("state")
    private String state = "1";
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    @TableField(value = "is_delete", fill = FieldFill.INSERT)
    private String isDelete;
}
